﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SmartEP.Presenter;

namespace SmartDesktop
{
    public partial class SearchPatientView : UserControl, ISearchPatientView
    {
        private PatientCarePresenter _presenter;

        public SearchPatientView(PatientCarePresenter presenter)
        {
            InitializeComponent();
            this.Name = "Patient Search";
        }

        public String FirstName
        {
            get { return txtFirstName.Text; }
            set { txtFirstName.Text = value; }
        }

        public String LastName
        {
            get { return txtLastName.Text; }
            set { txtLastName.Text = value; }
        }

        public DateTime DateOfBirth
        {
            get { return dpDateOfBirth.Value; }
            set { dpDateOfBirth.Value = value; }
        }

        private void Check_CheckIn(CheckBox chk1, CheckBox chk2)
        {
            if (chk1.Checked && !chk2.Checked)
            {
                chk2.Checked = false;
            }
            if (chk2.Checked)
            {
                chk1.Checked = false;
            }
        }       
    }
}
